package com.ctyun.xstore.vod.metadata;

import com.ctyun.xstore.vod.common.AbstractGeneralClient;
import com.ctyun.xstore.vod.metadata.request.CreateMetadataTaskRequest;
import com.ctyun.xstore.vod.metadata.response.CreateMetadataTaskResponse;

import java.io.IOException;

public class MetadataClient extends AbstractGeneralClient {

	public MetadataClient(String accessKey, String secretKey) {
		super(accessKey, secretKey);
	}

	public MetadataClient(String host, String accessKey, String secretKey) {
		super(host, accessKey, secretKey);
	}

	/**
	 * 发起获取元数据任务
	 * 
	 * @param request
	 * @return
	 * @throws IOException
	 */
	public CreateMetadataTaskResponse createMetadataTask(CreateMetadataTaskRequest request) throws IOException {
		return this.execute(request, CreateMetadataTaskResponse.class);
	}

}
